<template>
    <fieldset>
        <legend>child</legend>
        <h1>child</h1>
        <h1>{{m}}</h1>
        <button @click="send">点击</button>
    </fieldset>
</template>

<script>
    export default{
        props:['m'],
        data(){
            return {
                gift:'vue3',
            }
        },
        methods:{
            send(){
                this.$emit('receive',this.gift)
            }
        }
    }
</script>